package com.summer.data;

import com.summer.data.config.Config;
import com.summer.data.connection.SessionFactory;

/**
 * @author ydfqy
 */

public class SummerData {

    private static SessionFactory defaultSessionFactory;

    public static void setDefaultSessionFactory(SessionFactory defaultSessionFactory) {
        defaultSessionFactory = defaultSessionFactory;
    }

    public static SessionFactory getDefaultSessionFactory() {
        return defaultSessionFactory;
    }

    public static Config getConfig() {
        return Config.getConfig();
    }

}
